package com.ljh.mybatisplusdemo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: Themberfue
 * @date: 2025/3/24 13:35
 * @description:
 */
@RequestMapping("/test")
@RestController
public class TestController {
    @RequestMapping("/t1")
    public Integer t1() {
        int a = 10 / 0;
        return 1;
    }

    @RequestMapping("/t2")
    public boolean t2() {
        String s = null;
        System.out.println(s.length());
        return true;
    }

    @RequestMapping("/t3")
    public String t3() {
        int[] arr = {1,2};
        System.out.println(arr[2]);
        return "t3";
    }
}
